﻿@{
    Layout = null;
}
<html>
<head>
    <meta name="viewport" content="width=device-width" />
    <title>修改密码</title>
    <link href="~/Content/static/h-ui/css/H-ui.min.css" rel="stylesheet" />
    <link rel="stylesheet" type="text/css" href="~/Content/static/h-ui.admin/css/H-ui.admin.css" />
    <link rel="stylesheet" type="text/css" href="~/Content/lib/Hui-iconfont/1.0.8/iconfont.css" />
    <link rel="stylesheet" type="text/css" href="~/Content/static/h-ui.admin/skin/default/skin.css" id="skin" />
    <link rel="stylesheet" type="text/css" href="~/Content/static/h-ui.admin/css/style.css" />
    <style>
        body {
            background: url('../../Images/壁纸.jpg') no-repeat;
        }

        div {
            position: absolute;
            width: 400px;
            height: 200px;
            left: 50%;
            top: 50%;
            margin-left: -200px;
            margin-top: -100px;
            border: 1px solid #00ffff;
            border-radius: 10px 10px;
            box-shadow: #00ff21 10px 5px 20px;
        }
    </style>
</head>
<body>
    <div>
        <table class="table table-hover table-border  radius" width="500">
            <tr>
                <td class="text-r">原始密码</td>
                <td>
                    <input type="text" name="pwd" class="input-text radius" required />
                    <span></span>
                </td>
            </tr>
            <tr>
                <td class="text-r">新密码</td>
                <td>
                    <input type="password" id="npwd" name="npwd" class="input-text radius" required />
                </td>
            </tr>
            <tr>
                <td class="text-r">请再次输入密码</td>
                <td>
                    <input type="password" id="qnpwd" name="qnpwd" class="input-text radius" required onblur="funcpwd()" />
                    <span id="scpwd"></span>
                </td>
            </tr>
            <tr>
                <td colspan="2" class="text-c">
                    <input type="submit" name="qnpwd" class="btn  btn-secondary-outline radius " style="color:#ffffff" />
                </td>
            </tr>
        </table>
    </div>
    <!--_footer 作为公共模版分离出去-->
    <script type="text/javascript" src="~/Content/lib/jquery/1.9.1/jquery.min.js"></script>
    <script type="text/javascript" src="~/Content/lib/layer/2.4/layer.js"></script>

    <script src="~/Content/static/h-ui/js/H-ui.min.js"></script>
    <script type="text/javascript" src="~/Content/static/h-ui.admin/js/H-ui.admin.js"></script> <!--/_footer 作为公共模版分离出去-->
    <!--请在下方写此页面业务相关的脚本-->
    <script type="text/javascript" src="~/Content/lib/jquery.contextmenu/jquery.contextmenu.r2.js"></script>
    <script type="text/javascript">
    function funcpwd() {
        var npwd = $("#npwd").val();
        var qnpwd = $("#qnpwd").val();
        if (npwd != qnpwd) {
            document.getElementById("scpwd").innerText = "两次输入密码不一致";
            $("#scpwd").css({ color: "red" });
        }
        else {
            document.getElementById("scpwd").innerText = "";
        }
    }
    </script>

</body>
</html>
